package com.cms.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.cms.domain.Data;


public interface DataDao {

	public Data getById(Long id);
	
	public Data getByIds(Long id_sbj,Long rowNum,Long id_item);
	
	public List<Data> getList(Long id_sbj);
	
	public List<Data> getListForPage(Long id_sbj, int startIndex, int size);
	
	public List<Data> getItemList(Long id_sbj,Long id_item);
	
	public List<Data> getRowList(Long id_sbj,Long rowNum);
	
	public void add(Data entity);

	public void update(Data entity);

	public void delete(Data entity);

	public Long getRowNumMax(Long id_sbj);
	
	public List<Map> getRowCount(@Param("id_sbj")Long id_sbj, @Param("condition")String condition);
	
}